<?php
$home_about = $tc->home_about(1);
$row = mysql_fetch_array($home_about);
$view_post = '<div id="home_about"><img src="images/gioi-thieu-ruou-sim.jpg" width="248" height="203" style="float:left" />
<div id="home_content"><h2>'.$row['name'].'</h2><h5>'.$row['summary'].'</h5><p style="text-align:right; line-height:25px"><a href="'.$tc->link_detail($row['menu_id']).$row['name_rewrite'].'.html" title="'.$row['name'].'">Xem thêm.</a></p></div><div style="clear:both; height:1px"></div></div>
<div id="list_product">';
$home_product = $tc->home_product(3);
while($row = mysql_fetch_array($home_product)){
	$view_post .= '<div class="item_product"><a href="'.$tc->link_detail($row['menu_id']).$row['name_rewrite'].'.html" title="'.$row['name'].'"><img src="'.url_product_thumb_image.$row['url_hinh'].'" alt="'.$row['name'].'" width="193" height="257" /><h3>'.$row['name'].'</h3></a><div>'.$row['summary'].'</div></div>';
}

$view_post .= '</div><div style="clear:both; height:10px"></div><div id="home_info"><h4>Thông tin Rượu Sim Phú Quốc</h4>';
$home_info = $tc->home_info(3);
while($row = mysql_fetch_array($home_info)){
	$view_post .= '<li><a href="'.$tc->link_detail($row['menu_id']).$row['name_rewrite'].'.html" title="'.$row['name'].'">'.$row['name'].'</a></li>';
}
$view_post .= '</div><div style="clear:both; height:40px"></div>';